﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using TinyERP.Framework;
using TinyERP.Framework.Plugin;
using System.Reflection;
using TinyERP.Framework.Controls.LayoutControl;

namespace TinyERPApp
{
    public partial class TestKryptonForm : Form
    {
        private LayoutControl mainCon, leftCon, rightCon;

        public TestKryptonForm()
        {
            InitializeComponent();
            InitLayout();
        }
        private void InitLayout()
        {
            Button btnL1 = new Button();
            Button btnL2 = new Button();
            Button btnL3 = new Button();
            Button btnR1 = new Button();
            Button btnR2 = new Button();

            mainCon = new LayoutControl(new QLayout(QLayout.Direction.Horizontal));
            mainCon.Dock = DockStyle.Fill;

            leftCon = new LayoutControl(new QLayout(QLayout.Direction.Vertical));
            rightCon = new LayoutControl(new QLayout(QLayout.Direction.Horizontal));

            mainCon.Controls.AddRange(new Control[] { leftCon, rightCon });

            btnL1.Text = "Test Button L 1";
            btnL2.Text = "Test Button L 2";
            btnL3.Text = "Test Button L 3";
            leftCon.Controls.AddRange(new Control[] { btnL1, btnL2, btnL3 });

            btnR1.Text = "Test Button R 1";
            btnR2.Text = "Test Button R 2";
            rightCon.Controls.AddRange(new Control[] { btnR1, btnR2 });

            this.Controls.Add(mainCon);

        }
    }
}
